package com.coocaa.ops.admin.v1.cornericontype.service;




import com.coocaa.ops.admin.v1.cornericontype.model.GlobalCornerIconTypeModel;
import com.coocaa.ops.common.core.biz.auth.entity.SysUserEntity;
import com.coocaa.ops.common.core.biz.cornericontype.entity.GlobalCornerIconTypeEntity;

import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/3/22.
 * @description
 */
public interface ICornerIconTypeService {
    /**
     * 保存
     *
     * @param entity
     * @param user
     */
    void save(GlobalCornerIconTypeEntity entity, SysUserEntity user);

    /**
     * 修改优先级
     *
     * @param typeId
     * @param priority
     * @param userId
     */
    void updatePriority(Integer typeId, Integer priority, Integer userId);

    /**
     * 获取详情信息
     *
     * @param id
     * @return
     */
    GlobalCornerIconTypeEntity getDetailInfo(Integer id);

    /**
     * 获取分页数据
     *
     * @param model
     * @return
     */
    Map<String, Object> getPageResult(GlobalCornerIconTypeModel model);

    /**
     * 获取所有有效的角标分类
     *
     * @return
     */
    Map<String, Object> getCornerTypes();


    /**
     * 批量删除
     *
     * @param ids
     * @param user
     * @return
     */
    Map deleteBatch(Integer[] ids, SysUserEntity user);
}
